package vamp_serviceweb

class Status {

    //status : "AVAILABLE","IN USE","OUT OF ORDER","IN PROCESS","REFUSED", "ACCEPTED"
    String status
    //available {0|1}
    Integer available
    Integer inprocess

    static constraints = {
        available()
        inprocess()
    }

    static mapping = {
        id column: 'idstatus'
    }

    public static final int STATUS_AVAILABLE = 0
    public static final int STATUS_IN_USE = 1
    public static final int STATUS_OUT_OF_ORDER = 2
    public static final int STATUS_IN_PROCESS = 3
    public static final int STATUS_REFUSED = 4
    public static final int STATUS_ACCEPTED = 5
}
